package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 异常订单表

 * </p>
 *
 * @author stylefeng
 * @since 2018-10-12
 */
@TableName("ex_order")
public class ExOrder extends Model<ExOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 订单单号
     */
    @TableField("order_sn")
    private String orderSn;
    /**
     * 异常类型（1红包减款、2已出库退单、3单品退单）
     */
    @TableField("ex_type")
    private Integer exType;
    /**
     * 异常原因
     */
    @TableField("ex_reason")
    private String exReason;
    /**
     * 异常状态（是否处理：1未处理、2已经处理）
     */
    @TableField("ex_state")
    private Integer exState;
    /**
     * 创建人
     */
    private String operator;
    /**
     * 创建人id
     */
    @TableField("operator_id")
    private Integer operatorId;
    /**
     * 创建时间
     */
    private Date createtime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Integer getExType() {
        return exType;
    }

    public void setExType(Integer exType) {
        this.exType = exType;
    }

    public String getExReason() {
        return exReason;
    }

    public void setExReason(String exReason) {
        this.exReason = exReason;
    }

    public Integer getExState() {
        return exState;
    }

    public void setExState(Integer exState) {
        this.exState = exState;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Integer getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Integer operatorId) {
        this.operatorId = operatorId;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ExOrder{" +
        "id=" + id +
        ", orderSn=" + orderSn +
        ", exType=" + exType +
        ", exReason=" + exReason +
        ", exState=" + exState +
        ", operator=" + operator +
        ", operatorId=" + operatorId +
        ", createtime=" + createtime +
        "}";
    }
}
